package com.meisiabc.app.repository.db.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meisiabc.app.repository.db.entity.Teacher;
import com.meisiabc.app.repository.db.mapper.TeacherMapper;
import org.springframework.stereotype.Service;

@Service
public class TeacherManager extends ServiceImpl<TeacherMapper, Teacher> {
    public Teacher selectByUniqueid(String uniqueid) {
        return getOne(new QueryWrapper<Teacher>().eq("uniqueid", uniqueid));
    }
}
